package com.qianyu.project.mapper;

import com.qianyu.project.entity.OutputProgressPlan;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qianyu.project.mapper.provider.OutputProgressPlanProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 产值进度计划主表 Mapper 接口
 * </p>
 *
 * @author gs
 * @since 2021-01-30
 */
@Repository
public interface OutputProgressPlanMapper extends BaseMapper<OutputProgressPlan> {

    @Insert("insert into output_progress_plan values(null,#{pid},#{planSubject},#{editerId},#{planDate},#{totalAmount},#{totalUpper}) ")
    void saveProgress(Map<String, Object> outputProgressPlan);

    @SelectProvider(method = "List" ,type = OutputProgressPlanProvider.class)
    List<Map<String, Object>> List(Map<String, String> params);
}
